package com.xuecheng.manage_course;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
/**
 * @author Administrator
 * @version 1.0
 **/
@SpringCloudApplication
@EnableFeignClients // 开启feign客户端
@MapperScan(basePackages={"com.xuecheng.manage_course.dao","com.xuecheng.manage_course.jpa"})//扫描dao
@EntityScan(basePackages={"com.xuecheng.framework.domain.course","com.xuecheng.framework.domain.jpa"})//扫描实体类
@ComponentScan(basePackages={"com.xuecheng.api"})//扫描接口
@ComponentScan(basePackages={"com.xuecheng.manage_course"})
@ComponentScan(basePackages={"com.xuecheng.framework"})//扫描common下的所有类
public class ManageCourseApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(ManageCourseApplication.class, args);
    }
}
